dm: core: device: add function: dev_get_uclass_name()
authorPrzemyslaw Marczak <[email protected]>
Wed, 15 Apr 2015 11:07:25 +0000 (13:07 +0200)
committerSimon Glass <[email protected]>
Wed, 22 Apr 2015 17:03:15 +0000 (11:03 -0600)
commitf9c370dcdf056f035f18bf77db8a706cea21f9ce
tree624132a7fed152a22b665157f925450487cd636c
parentcc73d37b7f1edbbf03e2abcf5815bdd122e8baed
dm: core: device: add function: dev_get_uclass_name()

This commit extends the driver model device's API by function:
- dev_get_uclass_name()

And this function returns the device's uclass driver name if:
- given dev pointer, is non_NULL
otherwise, the NULL pointer is returned.

Signed-off-by: Przemyslaw Marczak <[email protected]>
Cc: Simon Glass <[email protected]>
Acked-by: Simon Glass <[email protected]>
drivers/core/device.c
include/dm/device.h